package com.ibm.law.domain;

import java.util.ArrayList;
import java.util.List;

public class EntityList<T> extends AbstractModelObject {
	private List<T> list=new ArrayList<T>();

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
		firePropertyChange("list", null, list);
	}
	public void add(T o){
		this.list.add(o);
		firePropertyChange("list", null, list);
	}
	public void remove(T o){
		this.list.remove(o);
		firePropertyChange("list", null, list);
	}
}
